﻿using AsmShaderConverter.AsmShader;
using System.Collections.Generic;

namespace AsmShaderConverter.HlslShader
{
    public class HlslStruct
    {
        public string VariableName { get; set; }
        public string StructTypeName { get; set; }
        private List<AsmShaderInputOutput> shaderInputs;

        public HlslStruct()
        {
            this.shaderInputs = new List<AsmShaderInputOutput>();
        }

        internal void AddRegister(AsmShaderInputOutput register)
        {
            this.shaderInputs.Add(register);
            this.shaderInputs.Sort();
        }

        internal List<AsmShaderInputOutput> GetRegisters()
        {
            return shaderInputs;
        }
    }
}